package com.bwie.es.remote;

import com.bwie.common.domain.request.ShopRequest;
import com.bwie.common.domain.response.ShopResponse;
import com.bwie.common.result.Result;
import com.bwie.es.remote.focaty.ShopRemoteFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(value = "bwie-shop",fallbackFactory = ShopRemoteFallback.class)
public interface ShopRemote {

    /**
     * 店铺列表
     * @param shopRequest
     * @return
     */
    @PostMapping("shopList")
    public Result<List<ShopResponse>> shopList(@RequestBody ShopRequest shopRequest);
}
